package com.dhp.campus.service;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhp.campus.domain.Chat;
import com.dhp.campus.domain.request.GetPrivateChartRequest;
import com.dhp.campus.domain.vo.MessageVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Dhp
* @description 针对表【chat(聊天消息表)】的数据库操作Service
* @createDate 2024-03-13 14:09:02
*/
public interface ChatService extends IService<Chat> {

    MessageVo chatResult(Long id, Long toId, String text, Integer chatType, DateTime date);

    List<MessageVo> getPrivateChartMessage(GetPrivateChartRequest privateChartRequest, HttpServletRequest request);

}
